<?php

require __DIR__ . '/../../vendor/autoload.php';

use Parse\MultiParser;
use Parse\StringParser;

{
    $parser = new MultiParser(
        new StringParser("x")
    );
    var_dump($parser->match("xxx ")
             === array("match" => array("x", "x", "x"),
                       "rest" => " "));
}
